import requests

headers = {
    "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
}

# r = requests.get("http://www.baidu.com", headers=headers)
r = requests.get("http://www.360buy.com", headers=headers)
print(r.url)  # url表示的是最后一次请求的URL
